Woocommerce\Pagarme\Model\Subscription A

Total Complexity 64
Dependencies 16
Dependents 13
Total lines 429
Lines of code 291
Logical lines of code 157
Comment lines 66
Methods 24
Properties 4

Methods 24

Method Rating Maintainability Complexity Lines of code
processSubscription()
S
47 5 39
addSupportToSubscription()
S
49 4 35
processFreeTrialSubscription()
S
49 4 31
processChangePaymentSubscription()
S
50 4 30
hasOneInstallmentPeriodInCart()
S
59 4 15
getRecurrenceCycle()
S
63 4 12
addChargeIdInProcessSubscription()
S
62 4 11
convertOrderObject()
S
57 3 16
setPaymentEnabled()
S
67 4 8
isSameCardInSubscription()
S
60 3 13
hasSubscriptionProductInCart()
S
70 3 6
hasSubscriptionFreeTrial()
S
70 3 6
__construct()
S
62 2 12
getCardDataByTransaction()
S
72 2 6
isChangePaymentSubscription()
S
68 2 7
getSubscription()
S
69 2 7
getTransactionsByCharges()
S
71 2 6
getChargesByResponse()
S
71 2 6
getAllSubscriptionsForOrder()
S
67 2 8
hasSubscriptionPlugin()
S
80 1 3
canUpdatePaymentMethod()
S
81 1 3
allowInstallments()
S
80 1 3
formatPaymentMethod()
S
74 1 4
getPagarmeCustomer()
S
75 1 4